package com.platform.vo;

import lombok.Data;

/**
 * @author Tommy
 * 描述Excel列信息DTO
 */

@Data
public class ExcelColCfgDto {
    private String title;
    private String fieldName;

    public static ExcelColCfgDto of(){
        return new ExcelColCfgDto();
    }

    public static ExcelColCfgDto of(String fieldName){
        ExcelColCfgDto colCfgDto = new ExcelColCfgDto();
        colCfgDto.setFieldName(fieldName);

        return colCfgDto;
    }

    public static ExcelColCfgDto of(String fieldName, String title){
        ExcelColCfgDto colCfgDto = new ExcelColCfgDto();
        colCfgDto.setFieldName(fieldName);
        colCfgDto.setTitle(title);

        return colCfgDto;
    }
}
